'use strict'

const BaseController  = require('./base');

class SubscribeController extends BaseController {
    async subscribeByUser(){
        const data = await this.ctx.service.subscribe.subscribeByUser(this.ctx.request.body)
        this.success(data)
    }


    async changeSubscribeStatus(){
        const data = this.ctx.service.subscribe.changeSubscribeStatus(this.ctx.request.body)
        this.success(data)
    }
}

module.exports = SubscribeController;